<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button @click = "count++">{{count}}</button>
        <button @click = "reset">重置</button>
        <input v-model = "message"></input>
        {{ message.split('').reverse().join('') }}


    </div>

<script type="module">
  import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
  
  createApp({
    data() {
      return {
        count:0,
        message:'hello vue',
        
      }
    },
    methods: {
      reset() {
        this.count = 0
      },
     
    }
  }).mount('#app')

</script>
</body>
</html>